package com.biglead.mini.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.biglead.mini.pojo.ConfirmOrderResult;
import com.biglead.mini.pojo.OmsOrderDetail;
import com.biglead.mini.pojo.OrderParam;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

public interface OmsPortalOrderService {
    ConfirmOrderResult generateConfirmOrder(Long userId, List<Long> cartIds);
    @Transactional
    Map<String, Object> generateOrder(Long userId, OrderParam orderParam);

    Page<OmsOrderDetail> listPage(Long userId, Integer status, Integer pageNum, Integer pageSize);

    OmsOrderDetail detail(Long orderId);

    void cancelOrder(Long orderId);

    void deleteOrder(Long userId, Long orderId);
}
